package com.sct.mycamapp;

/**
 * Created by a on 12/2/15.
 */
public class CamJni {
    public native static void create(int w, int h, int fps, int nSampleInFrames);     ///thread unsafe
    public native static void destroy();    ///thread unsafe
    public native static void onFrame(byte[] data);
    public native static void start(String url);
    public native static void stop();
    public native static void onPCMFrame(byte[] data, int len);
    public native static String getURL();

    public native static int getpcmdata(byte[] data, int len);
}
